<%
  #File:    /app/views/home/index.rhtml
  #Author:  Andrew Stone
  #Created: 09.19.2006
%>  
<% if @messages.length > 0 %>
    <div id="twocols">
      <div id="left">
        <%=render(:partial => "messages", :collection => @messages)%>
      </div>  
    <div id="right">
<% else %>
   <div style="width: 600px;">
<% end %>
      <% if @pages.length > 0 %>
          <%=start_small_module_wrapper%>
            <div class="module_header">Featured Pages</div>
            <div class="small_module">
              <%=render(:partial => "page", :collection => @pages)%>
            </div>
          <%=end_module_wrapper%>
        <div class="module_spacer"></div>
      <% end %>
      <% if @documents.length > 0 %>
          <%=start_small_module_wrapper%>
            <div class="module_header">Featured Documents</div>
            <div class="small_module">
              <%=render(:partial => "document", :collection => @documents)%>
            </div>
          <%=end_module_wrapper%>
        <div class="module_spacer"></div>
      <% end %>
  </div>  
<% if @messages.length > 0 %>
    </div>
<% end %>
